const getters = {
    //state =>箭头函数
    token: state => {
        return state.user.token//token
    },
    user: state => state.user.user, //用户对象
}

export default getters